package com.jt.www.domain.enums.common;

/**
 * 是否删除
 */
public enum IsDeletedEnum {

    IS((byte) 1, "是"),
    NO((byte) 0, "否");

    /**
     * code
     */
    private Byte value;
    /**
     * 描述
     */
    private String desc;

    IsDeletedEnum(Byte value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static boolean is(Byte value) {
        return IS.value.equals(value);
    }


    public Byte getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}


